package com.oms.main;

import java.awt.EventQueue;

import com.oms.context.OMSContext;
import com.oms.model.OMSOrderTableModel;
import com.oms.view.OMSApplicationView;

public class OMSMain {
	
	private static OMSContext context;
	private static OMSTestData testData;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		context = new OMSContext();
		testData = new OMSTestData();
		
		context.orderTableModel = new OMSOrderTableModel(testData.getOrderTableData(), testData.getOrderTableColumns());
		
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					OMSApplicationView window = new OMSApplicationView(context);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

}
